//
//  WLDefine.h
//  WanLian
//
//  Created by muzhuang on 2018/9/11.
//  Copyright © 2018年 wanlian. All rights reserved.
//
//把pch里面的定义转移到这里来
#ifndef WLDefine_h
#define WLDefine_h

#import "Masonry.h"
#import "AFNetworking.h"
#import "UIView+WebCache.h"
#import "UIImageView+WebCache.h"
#import "UINavigationController+FDFullscreenPopGesture.h"
#import "UIViewController+MBPHUD.h"
#import "WLCommonTool.h"
#import "WLHttpManager.h"
#import "WLSocketManager.h"
#import "MJExtension.h"
#import "MJRefresh.h"
#import "WLFreshGifHeader.h"
#import "WLUseManager.h"
#import "NSMutableData+ext.h"
#import "NSData+ext.h"

#if DEBUG

static NSString* const WebPageHost = @"http://47.75.195.106";

#else

static NSString* const WebPageHost = @"http://47.75.195.106";

#endif

#define WLSocketPacketTypeCOMMON_ERROR @"COMMON_ERROR"
#define DEVICE_FILE_UPLOAD_CHECK @"DEVICE_FILE_UPLOAD_CHECK"
#define DEVICE_FILE_UPLOAD_REQ @"DEVICE_FILE_UPLOAD_REQ"
#define DEVICE_FILE_DOWNLOAD_CHECK @"DEVICE_FILE_DOWNLOAD_CHECK"
#define WLSocketPacketTypePEER_MUST_OUT @"PEER_MUST_OUT"
#define WLSocketPacketTypeCOMMON_DEVICE_KEY_ERROR @"COMMON_DEVICE_KEY_ERROR"

#define WLSocketPacketReplyTypeREGISTER @"REGISTER"

//#define BASEURL = @"http://47.75.195.106/router/"MJRefresh.h

#define wlIs_iPhoneX ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(1125, 2436), [[UIScreen mainScreen] currentMode].size) : NO)

#define WIDTH_SCREEN_WL  [[UIScreen mainScreen] bounds].size.width//获取屏幕宽高
#define HEIGHT_SCREEN_WL [[UIScreen mainScreen] bounds].size.height

#define WL_StatusBarHeight  [[UIApplication sharedApplication] statusBarFrame].size.height
#define WL_TabBarHeight (WL_StatusBarHeight > 20 ? 83 : 49)     //底部tabbar高度
#define WL_NavTopHeight (WL_StatusBarHeight + 44.0)     //整个导航栏高度
#define WL_Bottom   (WL_StatusBarHeight > 20 ? 34 : 0)     //
#define WL_Top     (WL_StatusBarHeight > 20 ? WL_StatusBarHeight : 0)

#define WLScaleX(px) (WIDTH_SCREEN_WL*(px)/375.0)//375*667标注的px
//#define WLScaleY(px) (HEIGHT_SCREEN_GZKGLC*(px)/667.0)//px:667标注的px


//字体
//#define PingFangMedium(px)

#define USER_PHONE      @"userPhone"//手机号
#define USER_SESSION    @"userSession"//
#define UNREAD_MSG_NUM  @"unreadMsgCount"//未读消息数

//#define ROUTER_CLIENT_ID  @"a2"

//notification
#define kNOTIFICATION_LOGINED   @"nofification_logined"
#define kNOTIFICATION_UNCONFIG  @"router_unconfiged"
#define kNOTIFICATION_CHANGED   @"router_changed"

#endif /* WLDefine_h */
